#pragma once
#include "Dictionary.h"
class MyListBox
{
private:
	HWND hListBox;
	HINSTANCE hInstance;
public:
	MyListBox(void);
	~MyListBox(void);
	HWND createListBox(int styles,int x, int y, int cx,int cy, HWND hParent, int id,
		int nHeight,int fnWeight , BOOL fdwItalic , BOOL fdwUnderline, LPTSTR font, HINSTANCE hInst);
	HWND getHandle();
	void hide();
	void show();
	void move(int x, int y, int cx, int cy);
	void setHCroll(int maxWidth);
	void addItem(LPTSTR itemAdd);
	int count();
	void deleteItem();
	void clearList();
	int getSelected();
	LPTSTR getText(int index);
	LPTSTR getTextSelected();
	BOOL searchList(LPTSTR itemSearch);
};
